<?php

namespace LJS\Controller;

/**
 * FeedbackController 类
 *
 * @since VER:1.0; DATE:2016-6-13; AUTHOR:SoChishun; EMAIL:14507247@qq.com; DESC:Added.
 */
class FeedbackController extends AppbaseController {

    public function index() {
        $this->display();
    }

    public function feedback_list() {
        $m_feedback = new \XWAM\Model\FeedbackModel();
        $tree = $m_feedback->select_tree(array('where' => array('pid' => 0)));
        $this->assign('tree',$tree);
        $this->display();
    }

    public function feedback_save() {
        $m_feedback = new \XWAM\Model\FeedbackModel();
        $result = $m_feedback->save_feedback();
        $this->success('留言成功!', U('feedback_list'));
    }

}
